@echo off

rem set CB=%BATCH_HOME%\framework\classes\
set CB=%BATCH_HOME%\lib\fwBase.jar
set CODEBASE=file://%CB%
set POLICY=%BATCH_HOME%\bin\.java.policy
set CP=%BATCH_HOME%\lib\log4j-1.2.16.jar

cd /d %BATCH_HOME%

start %JAVA_HOME%\bin\java -cp %CP% org.apache.log4j.net.SimpleSocketServer 20001 %BATCH_HOME%\classes\log4jServer.xml

start %JAVA_HOME%\bin\rmiregistry 20000

set PATH=%BATCH_HOME%\bin;%PATH%

set CP=%BATCH_HOME%\classes;%CP%;%CB%;%BATCH_HOME%\lib\commons-logging-1.1.1.jar;%BATCH_HOME%\lib\postgresql-9.0-801.jdbc4.jar

start %JAVA_HOME%\bin\java -cp %CP% -Djava.rmi.server.codebase=%CODEBASE% -Djava.security.policy=%POLICY% -Dlog4j.configuration=file:%BATCH_HOME%/classes/log4jJM.xml batch.controller.JobManagerImpl

set CB=
set CP=
set CODEBASE=
set POLICY=
